package com.example.network_lib;

import com.example.network_lib.module.OrderDetailBean;
import com.example.network_lib.module.UpdateAppBean;
import com.example.network_lib.module.base_module.BaseResponse;

import java.util.function.DoubleUnaryOperator;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

/**
 * @author Administrator
 * @createTime 2019/9/25 10:33
 */
public interface HttpApi {
    @GET("v1.0/api/app/returnAndroidAppHao")
    Observable<BaseResponse<UpdateAppBean>> getUpdate(@Query("appVersion") String appVersion);

    /**
     * 订单详情
     */
    @Headers({"Domain-Name: api"})
    @GET("app/userAuthentication/pay")
    Observable<BaseResponse<OrderDetailBean>> getOrderDetail(@Query("mobile") String mobile, @Query("sourceH5Code") String sourceH5Code);
}
